package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.base.BaseBomInfo;
import org.apache.ibatis.annotations.Select;

/**
 * bom详情Mapper接口
 *
 * @author ruoyi
 * @date 2023-02-17
 */
public interface BaseBomInfoMapper extends BaseMapper<BaseBomInfo> {

    @Select("select count(1) from base_bom_info where parent_id = #{id}")
    int hasChildByDeptId(Long id);
}
